hdc shell mount -o rw,remount /

for /f %%i in ('hdc shell "file /bin/toybox | grep -o 64 | wc -l"') do set RESULT=%%i
if %RESULT% neq 0 (set LIB_DIR=lib64) else (set LIB_DIR=lib)
echo %LIB_DIR%

hdc file send .\out\rk3568\lib.unstripped\security\huks\libhuks_engine_core_standard.z.so  /system/%LIB_DIR%/libhuks_engine_core_standard.z.so
hdc file send .\out\rk3568\lib.unstripped\security\huks\libhuks_service.z.so               /system/%LIB_DIR%/libhuks_service.z.so
hdc file send .\out\rk3568\lib.unstripped\security\huks\libhuks.z.so                       /system/%LIB_DIR%/module/security/libhuks.z.so
hdc file send .\out\rk3568\lib.unstripped\security\huks\libhuks_ndk.z.so                   /system/%LIB_DIR%/platformsdk/libhuks_ndk.z.so
hdc file send .\out\rk3568\lib.unstripped\security\huks\libhukssdk.z.so                    /system/%LIB_DIR%/platformsdk/libhukssdk.z.so

@REM hdc file send .\out\rk3568\exe.unstripped\tests\unittest\huks_standard\huks_UT_test\huks_UT_test /system/bin/
@REM hdc file send .\out\rk3568\tests\unittest\huks_standard\huks_UT_test\huks_UT_test /system/bin/
@REM hdc shell chmod +x /system/bin/huks_UT_test
@REM hdc file send .\base\security\huks\test\unittest\huks_standard_test\three_stage_test\src\hks_chipset_platform_encrypt_tool_input.json /data/
hdc shell "ps -A | grep huks"
hdc shell "ps -A | grep huks | grep -oE '\d+' | head -1 | xargs kill"
hdc shell "ps -A | grep huks"
pause